package cn.home.sysmanagement.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.home.common.annotation.Excel;
import cn.home.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 公告-医生中间对象 home_doctor_message
 * 
 * @author homedoctor
 * @date 2025-04-10
 */
public class HomeDoctorMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 医生编号 */
    @Excel(name = "医生编号")
    private Long doctorid;

    /** 信息编号 */
    @Excel(name = "信息编号")
    private Long messageid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    /** $column.columnComment */
    private Date relasetime;

    /** $column.columnComment */
    private String exp2;

    public void setDoctorid(Long doctorid) 
    {
        this.doctorid = doctorid;
    }

    public Long getDoctorid() 
    {
        return doctorid;
    }

    public void setMessageid(Long messageid) 
    {
        this.messageid = messageid;
    }

    public Long getMessageid() 
    {
        return messageid;
    }

    public void setrelasetime(Date relasetime)
    {
        this.relasetime = relasetime;
    }

    public Date getrelasetime()
    {
        return relasetime;
    }

    public void setExp2(String exp2) 
    {
        this.exp2 = exp2;
    }

    public String getExp2() 
    {
        return exp2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("doctorid", getDoctorid())
            .append("messageid", getMessageid())
            .append("relasetime", getrelasetime())
            .append("exp2", getExp2())
            .toString();
    }
}
